<?php

$baidu = './tongji/Baiduspider/'.date('Ymd').'.log';
$a360 = './tongji/360Spider/'.date('Ymd').'.log';
$sogou = './tongji/Sogou/'.date('Ymd').'.log';
$shenma = './tongji/Yisouspider/'.date('Ymd').'.log';
$toutiao = './tongji/Bytespider/'.date('Ymd').'.log';
$google = './tongji/Googlebot/'.date('Ymd').'.log';
$tbaidu = intval(exec("wc -l '$baidu'"));
$ta360 = intval(exec("wc -l '$a360'"));
$tsogou = intval(exec("wc -l '$sogou'"));
$tshenma = intval(exec("wc -l '$shenma'"));
$ttoutiao = intval(exec("wc -l '$toutiao'"));
$tgoogle = intval(exec("wc -l '$google'"));
echo $_SERVER['HTTP_HOST'].':'.$tbaidu.'----';
echo $ta360.'----';
echo $tsogou.'----';
echo $tshenma.'----';
echo $ttoutiao.'----';
echo $tgoogle;